/**
 * 
 */
package site.entity;

import neoutil.CommonEntity;

/**
 * 站内信
 * 
 * @author Neo
 * 
 */
public class Message extends CommonEntity {
	public final int TYPE_NOTICE = 1;
	public final int TYPE_DRAFT = 2;
	public final int TYPE_INBOX = 3;
	public final int TYPE_OUTBOX = 4;

	private String title;
	private String content;
	private Long senderId;
	private String senderUuid;
	private User sender;
	private Long receiverId;
	private String receiverUuid;
	private User receiver;
	private int type = TYPE_DRAFT;

	// === Getters and Setters === //
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getSenderId() {
		return senderId;
	}

	public void setSenderId(Long senderId) {
		this.senderId = senderId;
	}

	public String getSenderUuid() {
		return senderUuid;
	}

	public void setSenderUuid(String senderUuid) {
		this.senderUuid = senderUuid;
	}

	public User getSender() {
		return sender;
	}

	public void setSender(User sender) {
		this.sender = sender;
	}

	public Long getReceiverId() {
		return receiverId;
	}

	public void setReceiverId(Long receiverId) {
		this.receiverId = receiverId;
	}

	public String getReceiverUuid() {
		return receiverUuid;
	}

	public void setReceiverUuid(String receiverUuid) {
		this.receiverUuid = receiverUuid;
	}

	public User getReceiver() {
		return receiver;
	}

	public void setReceiver(User receiver) {
		this.receiver = receiver;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
